/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package beans;

import db.ConfigApp;

/**
 *
 * @author quangphamngoc
 */
public class GroupBean {
    private int Gr_ID;
    private int Cat_ID;
    private String Gr_Name;
    private int Gr_status;
    
    private String Cat_Name;
    private String statusAsString;

    /**
     * @return the Gr_ID
     */
    public int getGr_ID() {
        return Gr_ID;
    }

    /**
     * @param Gr_ID the Gr_ID to set
     */
    public void setGr_ID(int Gr_ID) {
        this.Gr_ID = Gr_ID;
    }

    /**
     * @return the Cat_ID
     */
    public int getCat_ID() {
        return Cat_ID;
    }

    /**
     * @param Cat_ID the Cat_ID to set
     */
    public void setCat_ID(int Cat_ID) {
        this.Cat_ID = Cat_ID;
    }

    /**
     * @return the Gr_Name
     */
    public String getGr_Name() {
        return Gr_Name;
    }

    /**
     * @param Gr_Name the Gr_Name to set
     */
    public void setGr_Name(String Gr_Name) {
        this.Gr_Name = Gr_Name;
    }

    /**
     * @return the Gr_status
     */
    public int getGr_status() {
        return Gr_status;
    }

    /**
     * @param Gr_status the Gr_status to set
     */
    public void setGr_status(int Gr_status) {
        this.Gr_status = Gr_status;
    }

    /**
     * @return the Cat_Name
     */
    public String getCat_Name() {
        return Cat_Name;
    }

    /**
     * @param Cat_Name the Cat_Name to set
     */
    public void setCat_Name(String Cat_Name) {
        this.Cat_Name = Cat_Name;
    }

    /**
     * @return the statusAsString
     */
    public String getStatusAsString() {
        //Tuy thuoc vao gia tri cua status
        //Dung string luu trong class ConfigApp
        if (Gr_status==1){
            return ConfigApp.statusOK;
        } else{
            return ConfigApp.statusNotOK;
        }
    }
    
    
}
